<?php
/**
 * Created by PhpStorm.
 * User: 张辉
 * Date: 2018/8/1
 * Time: 16:02
 */
namespace app\common\redis;
/**
 * Class ArticleParticipleRedis 文章内容分词
 */
class ArticleParticipleRedis extends RedisModel
{
    // 已发布文章
    const ARTICLE_TYPE_ARTICLE = 'article';
    // 采集文章
    const ARTICLE_TYPE_SPIDER = 'spider';
    // 写手文章
    const ARTICLE_TYPE_WRITER = 'writer';

    /**
     * Redis配置名称
     * @var string
     */
    public $redis = 'sim_hash';

    /**
     * Redis key
     * @var string
     */
    public $key = 'hash:article_participle';

    public function get_hash_key( $id, $type )
    {
        return $type.':'.$id;
    }


}